<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <f:view contentType="text/html" encoding="utf-8">
      <h:head/>
<h:body>
<style>
body {
  background: url(../travelDest.jpeg) no-repeat;
  background-size: 125%;
}
</style>
         <p:tabMenu activeIndex="5">
    		<p:menuitem value="RicercaPacchetto" url="search.xhtml" icon="ui-icon-search" />
    		<p:menuitem value="AreaPersonale" url="index.xhtml" icon="ui-icon-person" />
       	</p:tabMenu>
    <br/>
		<h:form>
		<p:panel header="SearchForm">
			<h:panelGrid columns="3" id="regGrid">
				<h:outputLabel for="pid">PID:</h:outputLabel>
				<p:inputText id="pid" value="#{searchPktBean.packet.pid}" />
				<p:message for="pid" />
				
				<h:outputLabel for="dest">Destinazione:</h:outputLabel>
				<p:inputText id="dest" value="#{searchPktBean.packet.destinazione}" />
				<p:message for="dest" />
				
				<h:outputLabel for="dat">Data (A partire da):</h:outputLabel>
				<p:inputText id="dat" value="#{searchPktBean.packet.dataInizio}" />
				<p:message for="dat" />
				
				</h:panelGrid>

		</p:panel>
				<br/><br/>
				<p:commandButton value="RicercaPerPID" update="regGrid" action="#{searchPktBean.searchByPidUtente()}" />&nbsp;
				<p:commandButton value="RicercaPerDestinazione" update="regGrid" action="#{searchPktBean.searchByDestinazioneUtente()}" />&nbsp;
				<p:commandButton value="RicercaPerData" update="regGrid" action="#{searchPktBean.searchByDateUtente()}" />&nbsp;
				<p:commandButton value="RicercaMultifiltro" update="regGrid" action="#{searchPktBean.searchComboUtente()}" />
	</h:form>
				
    </h:body>
   
   </f:view>
</html>